package utils;

/**
 * Class indicates player's side in game
 */
public class PlayerSides {
	
	public static enum Sides {
		Black, White
	}
	
	/**
	 * According to given side value, return opponent side
	 * @param side- original side
	 * @return side of opponent player
	 */
	public static Sides getOpponentSide(Sides side) {
		
		// check given side and return opponent's side
		if (side.equals(Sides.White)) { 
			return Sides.Black; 
			
		}
		
		return Sides.White;
	}
}